#!/usr/bin/env python

# 检查字典中是否存在键或者值

zpp = {'age':'27', 'coutry':'China', 'sex':'男'}

def in_keys(name, dic):
    """检测是否在字典key中

    :dic: TODO
    :returns: TODO

    """
    return name in dic.keys()

def in_values(name, dic):
    """检测是否在字典value中

    :name: TODO
    :dic: TODO
    :returns: TODO

    """
    return name in dic.values()
